#cmake file for project facedetect
#author:guyadong
#created:2016/01/09
############################################################################
cmake_minimum_required( VERSION 2.6 )

##将全局属性FACESDK_INCLUDE指定的路径加入include路径列表中
if( FACESDK_INCLUDE )
	include_directories("${FACESDK_INCLUDE}")
	MESSAGE(STATUS "opencl include directory :${INCLUDE_OPENCL_REQUIRED}")
else()
	message(FATAL_ERROR "not found include directory for facesdk " )
endif()

include_directories(
	"${INCLUDE_CIMG}" 
	"${LIBJPEG_TURBO_DIR}/include" 
	"${OPENJPEG_DIR}/include"
	"${COMMONS_SOURCE_FOLDER}" 
	"${PROJECT_SOURCE_DIR}/include"
	"${FACESDK_INCLUDE}"  
	"${PROJECT_SOURCE_DIR}/faceimage/cimgwrapper"
	)

############################################################################

add_executable( test_fd test_fd.cpp facesdkwrapper.cpp)
#SET_TARGET_PROPERTIES(test_fd PROPERTIES  COMPILE_FLAGS  "-m32")
target_link_libraries(test_fd faceimage 
	"${JPEG_LIBRARY_STATIC}" 
	"${FD_SHSTD_LIBRARY_IMPORT}"
	"${FR_IV_STD_LIBRARY_IMPORT}"
	"${FR_SHSTD_LIBRARY_IMPORT}"
	)
